import request from '~/common/request';
import { handleJsonResult } from '~/common/requestHandler';

function getMemberInfo(params) {
  return request.get('getMemberInfoByOpenId.byhealth', params)
  .then(handleJsonResult);
}
function getMemberInfoByPhone(params) {
  return request.post('getMemberInfoByMobilephone.byhealth', params)
  .then(handleJsonResult);
}

export default {
  getMemberInfo,
  getMemberInfoByPhone,
}
